package com.offcn.service.impl;

import com.offcn.entity.OrderItem;
import com.offcn.mapper.OrderItemMapper;
import com.offcn.service.OrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("orderItemService")
public class OrderItemServiceImpl  implements OrderItemService {
    @Resource
     private OrderItemMapper orderItemMapper;
    @Override
    public int insertOrderItem(OrderItem orderItem) {
        return orderItemMapper.insertOrderItem(orderItem);
    }

    @Override
    public List<OrderItem> selectByAll(int oid) {
        return orderItemMapper.selectByAll(oid);
    }
}
